/**
 * 功能描述 邮寄登记
 */
define(function (require, exports, module) {
    //引入视图基类
    var ELView = require("elview");

    //assets
    var template = require("./assets/tpl/mailregister_main.tpl");
    require("./assets/css/mailregister_main.css");

    //business

    //component
    var mailregisterSubnavComp = require("./component/mailregisterSubnavComp");
    var mailregisterGridComp = require("./component/mailregisterGridComp");
    var registerGridComp = require("./component/registerGridComp");
    
    //constant

    //handler

    //store

    var mailregister_main = ELView.extend({
        attrs: {
            template: template
        },
        events : {
        	
        },
        initComponent: function (params, widget) {
        	mailregisterSubnavComp.initComponent(params, widget); 
        	mailregisterGridComp.initComponent(params, widget);
        	registerGridComp.initComponent(params, widget);
        },
        afterInitComponent: function (params, widget) {
        	widget.get("subnav").setValue("year",moment().year());
        	widget.get("indexgrid").refresh();
        }
    });

    module.exports = mailregister_main;
});
